Optimal. Leaf size=38 \[ \frac {B \sin (c+d x)}{d}+\frac {C \sin (c+d x) \cos (c+d x)}{2 d}+\frac {C x}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {2637, 2635, 8} \[ \frac {B \sin (c+d x)}{d}+\frac {C \sin (c+d x) \cos (c+d x)}{2 d}+\frac {C x}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2635
Rule 2637
Rubi steps
\begin {align*} \int \left (B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx &=B \int \cos (c+d x) \, dx+C \int \cos ^2(c+d x) \, dx\\ &=\frac {B \sin (c+d x)}{d}+\frac {C \cos (c+d x) \sin (c+d x)}{2 d}+\frac {1}{2} C \int 1 \, dx\\ &=\frac {C x}{2}+\frac {B \sin (c+d x)}{d}+\frac {C \cos (c+d x) \sin (c+d x)}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 35, normalized size = 0.92 \[ \frac {4 B \sin (c+d x)+C (2 (c+d x)+\sin (2 (c+d x)))}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.46, size = 29, normalized size = 0.76 \[ \frac {C d x + {\left (C \cos \left (d x + c\right ) + 2 \, B\right )} \sin \left (d x + c\right )}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.27, size = 32, normalized size = 0.84 \[ \frac {1}{4} \, C {\left (2 \, x + \frac {\sin \left (2 \, d x + 2 \, c\right )}{d}\right )} + \frac {B \sin \left (d x + c\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 40, normalized size = 1.05 \[ \frac {B \sin \left (d x +c \right )}{d}+\frac {C \left (\frac {\cos \left (d x +c \right ) \sin \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 35, normalized size = 0.92 \[ \frac {{\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} C}{4 \, d} + \frac {B \sin \left (d x + c\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.03, size = 31, normalized size = 0.82 \[ \frac {C\,x}{2}+\frac {C\,\sin \left (2\,c+2\,d\,x\right )}{4\,d}+\frac {B\,\sin \left (c+d\,x\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.22, size = 63, normalized size = 1.66 \[ B \left (\begin {cases} \frac {\sin {\left (c + d x \right )}}{d} & \text {for}\: d \neq 0 \\x \cos {\relax (c )} & \text {otherwise} \end {cases}\right ) + C \left (\begin {cases} \frac {x \sin ^{2}{\left (c + d x \right )}}{2} + \frac {x \cos ^{2}{\left (c + d x \right )}}{2} + \frac {\sin {\left (c + d x \right )} \cos {\left (c + d x \right )}}{2 d} & \text {for}\: d \neq 0 \\x \cos ^{2}{\relax (c )} & \text {otherwise} \end {cases}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________